package com.train.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@Component
@FeignClient(value = "sentinel-server",fallback = SentinelOpenFeignFallback.class)
public interface SentinelOpenFeign {
    @GetMapping(path = {"/testD"})
    public Map testD(@RequestParam("p1") String p1);
}
